package sword;



import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Solution2 {

    public static void main(String[] args) {
        List<Integer> temp = Arrays.asList(1, 3, 5, 7, 9);
        ArrayList<Integer> list = new ArrayList<Integer>(temp);
        for (Integer integer : list) {
            if (5 == integer)
                list.remove(integer);
        }
        System.out.println();
    }
}
